package com.ruoyi.riskrule.service.impl;

import com.ruoyi.bizsys.domain.CreditApply;
import com.ruoyi.riskrule.mapper.CreditFieldMapper;
import com.ruoyi.riskrule.service.ICreditFieldService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author: Jamnsin
 * @Date: 2021/3/1 10:43 上午
 */
@Service
public class CreditFieldServiceImpl implements ICreditFieldService {

    @Autowired
    private CreditFieldMapper creditFieldMapper;

    @Override
    public int getCntCreditReject(String userId) {
        return creditFieldMapper.getCntCreditReject(userId);
    }

    @Override
    public int getCntCreditReject30(String userId) {
        return creditFieldMapper.getCntCreditReject30(userId);
    }

    @Override
    public int getCntBvn(String bvnPhone) {
        return creditFieldMapper.getCntBvn(bvnPhone);
    }

    @Override
    public int getCstMcntMail(String email) {
        return creditFieldMapper.getCstMcntMail(email);
    }

    @Override
    public int getCntCredit60Days(String userId) {
        return creditFieldMapper.getCntCredit60Days(userId);
    }

    @Override
    public int getCntApply60Days(String userId) {
        return creditFieldMapper.getCntApply60Days(userId);
    }

    @Override
    public int getCntWithdrawReject(String userId) {
        return creditFieldMapper.getCntWithdrawReject(userId);
    }

    @Override
    public int getCntImei(String fingerprint) {
        return creditFieldMapper.getCntImei(fingerprint);
    }

    @Override
    public int getCntDevice(String fingerprint) {
        return creditFieldMapper.getCntDevice(fingerprint);
    }

    @Override
    public CreditApply getApprovedRecentResult(String userId) {
        return creditFieldMapper.getApprovedRecentResult(userId);
    }

    @Override
    public int getLastTimeInterval(String custNo) {
        return creditFieldMapper.getLastTimeInterval(custNo);
    }

    @Override
    public List<Map<String, String>> getOverdueRealNames() {
        return creditFieldMapper.getOverdueRealNames();
    }

    @Override
    public int getCntwifino(String wifiName, String countryState) {
        return creditFieldMapper.getCntwifino(wifiName, countryState);
    }

    @Override
    public int getCntwifiodno(String wifiName, String countryState) {
        return creditFieldMapper.getCntwifiodno(wifiName, countryState);
    }

    @Override
    public int getCntgpsno(String longitude, String latitude) {
        return creditFieldMapper.getCntgpsno(longitude, latitude);
    }

    @Override
    public int getCntgpsodno(String longitude, String latitude) {
        return creditFieldMapper.getCntgpsodno(longitude, latitude);
    }

    @Override
    public int getUseDistinctFingerprint(String userId) {
        return creditFieldMapper.getUseDistinctFingerprint(userId);
    }

    @Override
    public int getUseDistinctNewFingerprint(String userId,String table,String deviceType) {
        return creditFieldMapper.getUseDistinctNewFingerprint(userId ,table,deviceType);
    }

    @Override
    public String fingerprintRelationCustNum(String fingerprint,String deviceTable,String deviceType) {
        return creditFieldMapper.fingerprintRelationCustNum(fingerprint,deviceTable,deviceType);
    }

    @Override
    public int custNumByFingerprint(String userId) {
        return creditFieldMapper.custNumByFingerprint(userId);
    }

    @Override
    public int custNumByNewFingerprint(String userId,String table,String deviceType) {
        return creditFieldMapper.custNumByNewFingerprint(userId, table,deviceType);
    }

    @Override
    public String getFristcountrystate(String userId) {
        return creditFieldMapper.getFristcountrystate(userId);
    }

    @Override
    public int getImeiCutCount(String[] imeis) {
        return creditFieldMapper.getImeiCutCount(imeis);
    }

    @Override
    public Map<String, Integer> getCreditApplyNums(String userId) {
        return creditFieldMapper.getCreditApplyNums(userId);
    }

    @Override
    public String getOverdueFlagByUserId(String userUuid) {
        return creditFieldMapper.getOverdueFlagByUserId(userUuid);
    }

    @Override
    public String getCntcontactRelation(String contactPhone) {
        return creditFieldMapper.getCntcontactRelation(contactPhone);
    }


    @Override
    public String getDeviceFirstVersion(String userUuid) {
        return creditFieldMapper.getDeviceFirstVersion(userUuid);
    }

}
